pull: Add support for `http-headers` option
authorColin Walters <walters@verbum.org>
Wed, 16 Nov 2016 02:03:26 +0000 (21:03 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 16 Nov 2016 10:04:22 +0000 (10:04 +0000)
commit37c07d2f1c90b12bcfba85a7d900f81a7c362eb4
treec2571cf4a617d56b4c201b0dfe21fdda7e312080
parent4b7ab5167cbb14b7a925f361bb464affecd2fd5b
pull: Add support for `http-headers` option

Some deployments may want to gate access to content based on things
like OAuth.  In this model, the client system would normally compute a
token and pass it to the server via an API.

We could theoretically support this in the remote config too, but
that'd be a bit weird for OAuth as the information is dynamic.
Therefore this cleans up the code a little bit to more clearly handle
the case that the fetcher is initialized from both remote config
data plus pull options.

Closes: #574
Approved by: giuseppe
Makefile-tests.am
src/libostree/ostree-fetcher.c
src/libostree/ostree-fetcher.h
src/libostree/ostree-repo-pull.c
src/ostree/ot-builtin-pull.c
src/ostree/ot-builtin-trivial-httpd.c
tests/test-remote-headers.sh [new file with mode: 0755]